#include <iostream>
#include <vector>
using namespace std;
class CQueue {
public:
    vector<int> list;
    int head,tail;  //队首队尾
    int maxSize;    //最大容量
    CQueue() {
        maxSize = 10005;
        head = tail = 0;
        list = {};
    }
    
    void appendTail(int value) {
        if(tail == maxSize)
            return;
        tail++;
        list.push_back(value);
    }
    
    int deleteHead() {
        if(head == tail)
            return -1;
        return list[head++];
    }
};
int main(int argc, char **argv) {
    CQueue* obj = new CQueue();
    int value = 1;
    obj->appendTail(value);
    int param_2 = obj->deleteHead();
    cout<<param_2<<endl;
}
/**
 * Your CQueue object will be instantiated and called as such:
 * CQueue* obj = new CQueue();
 * obj->appendTail(value);
 * int param_2 = obj->deleteHead();
 */